package com.gmt.service;

import org.springframework.context.annotation.ImportSelector;
import org.springframework.core.type.AnnotationMetadata;

/**
 * @author John.zhang
 * @version Id: GmImportSelector, v 1.0 2020/11/10 19:33 ZhiYong Exp $
 */
public class GmImportSelector implements ImportSelector {

    /**
     * IOC容器要加载的类型全路径数组
     *
     * @param annotationMetadata
     * @return
     */
    @Override
    public String[] selectImports(AnnotationMetadata annotationMetadata) {
        //可以实现动态加载
        return new String[]{LoggerService.class.getName()};
    }
}
